From: Josef Schlehofer Date: Thu, 9 Oct 2025 06:54:51 +0000 (+0200) Subject: gperftools: include headers in the staging_dir X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=83080971826dc59423bd97d737619edde7e5eefd;p=feed%2Fpackages.git gperftools: include headers in the staging_dir This fixes version detection issues when other packages (like snort3) try to find the tcmalloc library using CMake's find_package(). Without the headers in the staging directory, CMake cannot read the version information from tcmalloc.h, resulting in empty version strings. Fixes: Found TCMalloc: /builder/staging_dir/target-x86_64_musl/usr/lib/libtcmalloc.so (found version "") Signed-off-by: Josef Schlehofer (cherry picked from commit e52a809371cbb055b1cc831f4e5aac152d1fb2b9) --- diff --git a/libs/gperftools/Makefile b/libs/gperftools/Makefile index 5279e5318f..db2a8a2084 100644 --- a/libs/gperftools/Makefile +++ b/libs/gperftools/Makefile @@ -55,6 +55,8 @@ CONFIGURE_ARGS += \ define Build/InstallDev $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcmalloc.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/include/gperftools + $(CP) $(PKG_INSTALL_DIR)/usr/include/gperftools/*.h $(1)/usr/include/gperftools/ endef define Package/gperftools-headers/install